import request from "@/utils/request";

// 查询APP版本列表
export function getAppVersionList(query) {
  return request({
    url: "/appVersion/list",
    method: "get",
    params: query,
  });
}

// 查询APP版本详情
export function getAppVersionInfo() {
  return request({
    url: "/appVersion/getInfo",
    method: "get",
  });
}

// 新增APP版本
export function addAppVersion(data) {
  return request({
    url: "/appVersion/add",
    method: "post",
    data: data,
  });
}

// 修改APP版本
export function updateAppVersion(data) {
  return request({
    url: "/appVersion/update",
    method: "put",
    data: data,
  });
}

// 删除设备版本
export function delAppVersion(versionId) {
  return request({
    url: "/appVersion/" + versionId,
    method: "delete",
  });
}
